package com.wz.project.ddjmsg.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wz.project.ddjmsg.mapper.MsgDdjMapper;
import com.wz.project.ddjmsg.domain.MsgDdj;
import com.wz.project.ddjmsg.service.IMsgDdjService;
import com.wz.common.utils.text.Convert;

/**
 * 堆垛机监控Service业务层处理
 * 
 * @author wz
 * @date 2024-01-04
 */
@Service
public class MsgDdjServiceImpl implements IMsgDdjService 
{
    @Autowired
    private MsgDdjMapper msgDdjMapper;

    /**
     * 查询堆垛机监控
     * 
     * @param id 堆垛机监控ID
     * @return 堆垛机监控
     */
    @Override
    public MsgDdj selectMsgDdjById(Long id)
    {
        return msgDdjMapper.selectMsgDdjById(id);
    }

    /**
     * 查询堆垛机监控列表
     * 
     * @param msgDdj 堆垛机监控
     * @return 堆垛机监控
     */
    @Override
    public List<MsgDdj> selectMsgDdjList(MsgDdj msgDdj)
    {
        return msgDdjMapper.selectMsgDdjList(msgDdj);
    }

    /**
     * 新增堆垛机监控
     * 
     * @param msgDdj 堆垛机监控
     * @return 结果
     */
    @Override
    public int insertMsgDdj(MsgDdj msgDdj)
    {
        return msgDdjMapper.insertMsgDdj(msgDdj);
    }

    /**
     * 修改堆垛机监控
     * 
     * @param msgDdj 堆垛机监控
     * @return 结果
     */
    @Override
    public int updateMsgDdj(MsgDdj msgDdj)
    {
        return msgDdjMapper.updateMsgDdj(msgDdj);
    }

    /**
     * 删除堆垛机监控对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteMsgDdjByIds(String ids)
    {
        return msgDdjMapper.deleteMsgDdjByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除堆垛机监控信息
     * 
     * @param id 堆垛机监控ID
     * @return 结果
     */
    @Override
    public int deleteMsgDdjById(Long id)
    {
        return msgDdjMapper.deleteMsgDdjById(id);
    }
}
